import request from '@/utils/request'

// 查询选择题列表
export function listChioceQuestion(query) {
  return request({
    url: '/exam/chioceQuestion/list',
    method: 'get',
    params: query
  })
}

// 查询选择题详细
export function getChioceQuestion(id) {
  return request({
    url: '/exam/chioceQuestion/' + id,
    method: 'get'
  })
}

// 新增选择题
export function addChioceQuestion(data) {
  return request({
    url: '/exam/chioceQuestion',
    method: 'post',
    data: data
  })
}

// 修改选择题
export function updateChioceQuestion(data) {
  return request({
    url: '/exam/chioceQuestion',
    method: 'put',
    data: data
  })
}

// 删除选择题
export function delChioceQuestion(id) {
  return request({
    url: '/exam/chioceQuestion/' + id,
    method: 'delete'
  })
}
